package com.wx.service.impl;

import java.util.Date;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.wx.service.WxUserLogService;

import me.chanjar.weixin.mp.bean.WxMpXmlMessage;

public class WxUserLogServiceImpl implements WxUserLogService {

	@Override
	public boolean saveWxUserLog(WxMpXmlMessage msg) {
		Db.save("sys_wx_user_log", new Record().set("openid", msg.getFromUserName()).set("createtime", new Date())
				.set("wxxml", msg.toString()));
		return true;
	}

}
